
import 'Definition.dart';

class AlertModel extends Definition {
  
	int? id;
	int? todo_id;
	/// 农历
	dynamic lunar;
	String? created_dt;
	String? updated_dt;
	String? alert_time;
	String? alert_duration;
	String? last_alert_time;
	String? next_alert_time;
	String? alert_name;
	/// 枚举值: GENERAL,LOOP
	String? alert_type;

  @override
  Map<String, dynamic> toJson() {
    return {
			"id": id,
			"todo_id": todo_id,
			"lunar": lunar,
			"created_dt": created_dt,
			"updated_dt": updated_dt,
			"alert_time": alert_time,
			"alert_duration": alert_duration,
			"last_alert_time": last_alert_time,
			"next_alert_time": next_alert_time,
			"alert_name": alert_name,
			"alert_type": alert_type,
    };
  }

  @override
  void fromJson(Map<String, dynamic> json) {
		id = json["id"];
		todo_id = json["todo_id"];
		lunar = json["lunar"];
		created_dt = json["created_dt"];
		updated_dt = json["updated_dt"];
		alert_time = json["alert_time"];
		alert_duration = json["alert_duration"];
		last_alert_time = json["last_alert_time"];
		next_alert_time = json["next_alert_time"];
		alert_name = json["alert_name"];
		alert_type = json["alert_type"];
  }
  
}
  